package com.my.cd.compose;

import java.util.Iterator;

/**
 * 空迭代器，用来保证迭代过程的安全性
 */
public class NullIterator implements Iterator {

    @Override
    public boolean hasNext() {
        return false;
    }

    @Override
    public Object next() {
        return null;
    }

    @Override
    public void remove() {
    }

}
